package com.example.socialview;

import com.hendraanggrian.appcompat.widget.PatternsCompat;
import junit.framework.Assert;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * ExampleOhosTest
 */
public class ExampleOhosTest {

    /**
     * testUtilsIsNumeric
     */
    @Test
    public void testUtilsIsNumeric() {
        boolean isEmpty = PatternsCompat.isNumbers("12367");
        Assert.assertNotNull(isEmpty);
        assertEquals(true, isEmpty);
    }

    /**
     * testUtilsIsHttpUrl
     */
    @Test
    public void testUtilsIsHttpUrl() {
        boolean isEmpty = PatternsCompat.isHttpUrl("http://www.baidu.com/");
        Assert.assertNotNull(isEmpty);
        assertEquals(true, isEmpty);
    }
}